#!/bin/bash

# --boot loader=/usr/share/ovmf/ovmf_code_x64.bin,loader_ro=yes,loader_type=pflash,nvram_template=/usr/share/ovmf/ovmf_vars_x64.bin,loader_secure=no \
# --boot=uefi \
# 运行
# virsh --connect qemu:///system start thinpc

exec virt-install \
--connect qemu:///system \
--virt-type=kvm \
--name=thinpc \
--ram=3072 \
--vcpus=1 \
--os-type=windows \
--accelerate \
--hvm \
--arch x86_64 \
--machine q35 \
--os-variant=win7 \
--cdrom=/home/gump/work/kvm/iso/ThinPC_110415_EVAL_x86fre.iso \
--network bridge=br0,model=virtio \
--graphics vnc,listen=0.0.0.0,password=ps1234,port=5910 \
--disk path=/home/gump/work/kvm/images/win7.qcow2,size=30,bus=virtio,format=qcow2 \
--disk path=/home/gump/work/kvm/iso/virtio-win.iso,device=cdrom \
--video qxl
